<div id="tmcategories">
    <ul id="cat" class="sf-menu sf-js-enabled">
        <?php foreach($categories as $key => $value):?>
        <li class="">
            <a href="<?php echo base_url('san-pham/danh-muc/'.$value['category_id'].'_'.url_friendly($value['title']));?>"><?php echo $value['title'];?></a>
        </li>
        <?php endforeach;?>
    </ul>
</div>